import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/qrcode',
    name: 'qrcode',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/qrcode.vue')
  },
  {
    path: '/catalog',
    name: 'catalog',
    component: () => import('../views/catalog.vue')
  },
  {
    path: '/ai',
    name: 'ai',
    component: () => import('../views/ai.vue')
  },
  {
    path: '/ai_new',
    name: 'ai_new',
    component: () => import('../views/ai_new.vue')
  },
  {
    path: '/ai_dev',
    name: 'ai_dev',
    component: () => import('../views/ai_dev.vue')
  },
  {
    path: '/navbar',
    name: 'navbar',
    component: () => import('../views/navbar.vue')
  },
  {
    path: '/slide',
    name: 'slide',
    component: () => import('../views/slide.vue')
  },
  {
    path: '/edit',
    name: 'edit',
    component: () => import('../views/edit.vue')
  },
  {
    path: '/tel',
    name: 'tel',
    component: () => import('../views/tel.vue')
  },
  {
    path: '/contact_us',
    name: 'contact_us',
    component: () => import('../views/contact_us.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
